#!/bin/bash
chown -R mobile /Applications/OfflineMaps.app/

if test -d /var/mobile/Media/Maps/
then
    chown -R mobile /var/mobile/Media/Maps/
fi